package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.OrderDealerBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDealerMapper extends RootMapper<OrderDealerBean> {
    
    OrderDealerBean getContractNo(String contractNo);

    Integer getOrderDealerStatusByOrderCode(Long orderCode);

    OrderDealerBean getDetailBasic(Long orderCode);

    int updateOrderStatus(@Param("orderCode") Long orderCode,@Param("orderStatus") Integer orderStatus);

    int getOrderDealerCount(@Param("params") Map<String, Object> params);

    List<OrderDealerBean> getOrderDealerList(@Param("params") Map<String, Object> params,@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize);

    Integer getCarCount(Long orderCode);

    int getOrderDealerStatusCount(@Param("orderStatus") int value,@Param("dealerId") Integer dealerId);

    List<Long> getOrderCodeByDealerId(Integer dealerId);

    int getOrderStatusCount(@Param("orderStatus") int value);

    Integer getOrderDealerAllCount(@Param("params")Map<String, Object> params);
}